package com.lw.vue_shop_server.mapper;

import com.lw.vue_shop_server.po.Manager;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ManagerMapper {

    /**
     * 根据用户名,密码查询用户
     */
    public Manager findManagerByNameAndPwd(@Param("username") String username, @Param("password") String password);
    public List getUserlist(Integer pagenum,Integer pagesize,String username);
    public Integer getUserNum(String username);
    public Integer addManager(Manager user);
    public Integer upadteManager(Manager user);
    public Manager findUserById(Integer id);
    public Integer delUserById(Integer id);
    public Integer updateStateById(Manager user);
    public Integer updateRoleById(Manager user);
}
